                                            <!-- 共用上传图片/附件 开始 -->
                                            <!--上传图片-->
                                            {if in_array('thumb',$isdisplay_array) or in_array('thumb_simple',$isdisplay_array)}
                                                <div class="row form-group">
                                                    <div class="col-md-3 col-form-label text-right">{:lang('v_upload_img')}</div>
                                                    <div class="col-md-5">
                                                        <table width="100%" border="0" cellpadding="0" cellspacing="0" id="tab1">
                                                            {empty name="rs.morepics"}
                                                                <tr>
                                                                    <td>
                                                                        <div class="row">
                                                                            <!-- 未勾选：简单图片上传 -->
                                                                            {if !in_array('thumb_simple',$isdisplay_array)}
                                                                                <div class="col-md-5 pl-2">
                                                                                    <div class="input-group mb-2">
                                                                                        <span class="input-group-prepend">
                                                                                            <span class="input-group-text h7">{:lang('v_title')}</span>
                                                                                        </span>
                                                                                        <input name="thumb_title_arr[]" type="text" class="form-control" value="">
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-md-7 pl-0 pr-2">
                                                                                    <div class="input-group mb-2">
                                                                                        <input name="thumb_arr[]" id="morepics2" type="text" class="form-control" value="">
                                                                                        <span class="input-group-append">
                                                                                            <span class="btn btn-success" onclick="upImage('#morepics2');"><i class="fa fa-image fa-fw mr-1"></i>{:lang('v_upload_img')}</span>
                                                                                            <span class="btn btn-info" onClick="javascript:AddRow('tab1','delbutton1','upImage','morepics','{$morepicsNum}','{:lang('v_upload_img')}','thumb');"><i class="fa fa-plus-circle fa-fw mr-1"></i>{:lang('v_add_one')}</span>
                                                                                        </span>
                                                                                    </div>
                                                                                </div>
                                                                            {else /}
                                                                                <input name="thumb_title_arr[]" type="hidden" value="">
                                                                                <div class="col-md-12 px-2">
                                                                                    <div class="input-group mb-2">
                                                                                        <input name="thumb_arr[]" id="morepics2" type="text" class="form-control" value="">
                                                                                        <span class="input-group-append">
                                                                                            <span class="btn btn-success" onclick="upImage('#morepics2');"><i class="fa fa-image fa-fw mr-1"></i>{:lang('v_upload_img')}</span>
                                                                                            <span class="btn btn-info" onClick="javascript:AddRow('tab1','delbutton1','upImage','morepics','{$morepicsNum}','{:lang('v_upload_img')}','thumb');"><i class="fa fa-plus-circle fa-fw mr-1"></i>{:lang('v_add_one')}</span>
                                                                                        </span>
                                                                                    </div>
                                                                                </div>
                                                                            {/if}
                                                                        </div>
                                                                    </td>
                                                                </tr>                        
                                                            {else /}
                                                                {volist name="morepics" id="img"}
                                                                    {php}$fileArr = explode('@',$img);{/php}
                                                                    <tr>
                                                                        <td>
                                                                            <div class="row">
                                                                                <!-- 未勾选：简单图片上传 -->
                                                                                {if !in_array('thumb_simple',$isdisplay_array)}
                                                                                    <div class="col-md-5 pl-2">
                                                                                        <div class="input-group mb-2">
                                                                                            <span class="input-group-prepend">
                                                                                                <span class="input-group-text h7">{:lang('v_title')}</span>
                                                                                            </span>
                                                                                            <input name="thumb_title_arr[]" type="text" class="form-control" value="{$fileArr[0]}">
                                                                                        </div>
                                                                                    </div>
                                                                                    <div class="col-md-7 pl-0 pr-2">
                                                                                        <div class="input-group mb-2">
                                                                                            <input name="thumb_arr[]" id="morepics{$i}" type="text" class="form-control" value="{$fileArr[1]}">
                                                                                            <span class="input-group-append">
                                                                                                <span class="btn btn-success" onclick="upImage('#morepics{$i}');"><i class="fa fa-image fa-fw mr-1"></i>{:lang('v_upload_img')}</span>
                                                                                                {eq name="i" value="1"}
                                                                                                    <span class="btn btn-info" onClick="javascript:AddRow('tab1','delbutton1','upImage','morepics','{$morepicsNum}','{:lang('v_upload_img')}','thumb');"><i class="fa fa-plus-circle fa-fw mr-1"></i>{:lang('v_add_one')}</span>
                                                                                                {else /}
                                                                                                    <label class="btn btn-danger"><input type="checkbox" class="d-none" id="delbutton1" onClick="javascript:DelRow('tab1','delbutton1');" /><i class="fa fa-trash fa-fw mr-1"></i>{:lang('v_delete_this')}</label>
                                                                                                {/eq}
                                                                                            </span>
                                                                                        </div>
                                                                                    </div>
                                                                                {else /}
                                                                                    <input name="thumb_title_arr[]" type="hidden" value="{$fileArr[0]}">
                                                                                    <div class="col-md-12 px-2">
                                                                                        <div class="input-group mb-2">
                                                                                            <input name="thumb_arr[]" id="morepics{$i}" type="text" class="form-control" value="{$fileArr[1]}">
                                                                                            <span class="input-group-append">
                                                                                                <span class="btn btn-success" onclick="upImage('#morepics{$i}');"><i class="fa fa-image fa-fw mr-1"></i>{:lang('v_upload_img')}</span>
                                                                                                {eq name="i" value="1"}
                                                                                                    <span class="btn btn-info" onClick="javascript:AddRow('tab1','delbutton1','upImage','morepics','{$morepicsNum}','{:lang('v_upload_img')}','thumb');"><i class="fa fa-plus-circle fa-fw mr-1"></i>{:lang('v_add_one')}</span>
                                                                                                {else /}
                                                                                                    <label class="btn btn-danger"><input type="checkbox" class="d-none" id="delbutton1" onClick="javascript:DelRow('tab1','delbutton1');" /><i class="fa fa-trash fa-fw mr-1"></i>{:lang('v_delete_this')}</label>
                                                                                                {/eq}
                                                                                            </span>
                                                                                        </div>
                                                                                    </div>
                                                                                {/if}
                                                                            </div>
                                                                        </td>
                                                                    </tr>                        
                                                                {/volist}
                                                            {/empty}
                                                        </table>
                                                    </div>
                                                </div>
                                            {else /}
                                                <input name="thumb_arr[]" type="hidden">
                                            {/if}
                                            <!--上传附件-->
                                            {if in_array('fileurl',$isdisplay_array) or in_array('file_simple',$isdisplay_array)}
                                                <div class="row form-group">
                                                    <div class="col-md-3 col-form-label text-right">{:lang('v_upload_file')}</div>
                                                    <div class="col-md-5">
                                                        <table width="100%" border="0" cellpadding="0" cellspacing="0" id="tab2">
                                                            {empty name="rs.morefileurl"}
                                                                <tr>
                                                                    <td>
                                                                        <div class="row mb-2">
                                                                            <div class="col-md-12 px-2">
                                                                                <div class="input-group mb-2">
                                                                                    <input name="file_arr[]" id="morefileurl2" type="text" class="form-control" value="">
                                                                                    <span class="input-group-append">
                                                                                        <span class="btn btn-success" onclick="upFiles('#morefileurl2');"><i class="fa fa-cloud-upload-alt fa-fw mr-1"></i>{:lang('v_upload_file')}</span>
                                                                                        <span class="btn btn-info" onClick="javascript:AddRow('tab2','delbutton2','upFiles','morefileurl','{$morefilesNum}','{:lang('v_upload_file')}','file');"><i class="fa fa-plus-circle fa-fw mr-1"></i>{:lang('v_add_one')}</span>
                                                                                    </span>
                                                                                </div>
                                                                            </div>
                                                                            <!-- 未勾选：简单附件上传 -->
                                                                            {if !in_array('file_simple',$isdisplay_array)}
                                                                                <div class="col-md-5 pl-2">
                                                                                    <div class="input-group mb-2">
                                                                                        <span class="input-group-prepend">
                                                                                            <span class="input-group-text h7">{:lang('v_size')}</span>
                                                                                        </span>
                                                                                        <input name="size_arr[]" type="number" class="form-control" value="">
                                                                                        <span class="input-group-append">
                                                                                            <span class="input-group-text h7">M</span>
                                                                                        </span>
                                                                                    </div>
                                                                                </div>
                                                                                <div class="col-md-7 pl-0 pr-2">
                                                                                    <div class="input-group mb-2">
                                                                                        <span class="input-group-prepend">
                                                                                            <span class="input-group-text h7">{:lang('v_title')}</span>
                                                                                        </span>
                                                                                        <input name="file_title_arr[]" type="text" class="form-control" value="">
                                                                                    </div>
                                                                                </div>
                                                                            {else /}
                                                                                <input name="size_arr[]" type="hidden" value="">
                                                                                <input name="file_title_arr[]" type="hidden" value="">
                                                                            {/if}
                                                                        </div>
                                                                    </td>
                                                                </tr>                        
                                                            {else /}
                                                                {volist name="morefileurl" id="file"}
                                                                    {php}$fileArr = explode('@',$file);{/php}
                                                                    <tr>
                                                                        <td>
                                                                            <div class="row mb-2">
                                                                                <div class="col-md-12 px-2">
                                                                                    <div class="input-group mb-2">
                                                                                        <input name="file_arr[]" id="morefileurl{$i}" type="text" class="form-control" value="{$fileArr[0]}">
                                                                                        <span class="input-group-append">
                                                                                            <span class="btn btn-success" onclick="upFiles('#morefileurl{$i}');"><i class="fa fa-cloud-upload-alt fa-fw mr-1"></i>{:lang('v_upload_file')}</span>
                                                                                            {eq name="i" value="1"}
                                                                                                <span class="btn btn-info" onClick="javascript:AddRow('tab2','delbutton2','upFiles','morefileurl','{$morefilesNum}','{:lang('v_upload_file')}','file');"><i class="fa fa-plus-circle fa-fw mr-1"></i>{:lang('v_add_one')}</span>
                                                                                            {else /}
                                                                                                <label class="btn btn-danger"><input type="checkbox" class="d-none" id="delbutton2" onClick="javascript:DelRow('tab2','delbutton2');" /><i class="fa fa-trash fa-fw mr-1"></i>{:lang('v_delete_this')}</label>
                                                                                            {/eq}
                                                                                        </span>
                                                                                    </div>
                                                                                </div>
                                                                                <!-- 未勾选：简单附件上传 -->
                                                                                {if !in_array('file_simple',$isdisplay_array)}
                                                                                    <div class="col-md-5 pl-2">
                                                                                        <div class="input-group mb-2">
                                                                                            <span class="input-group-prepend">
                                                                                                <span class="input-group-text h7">{:lang('v_size')}</span>
                                                                                            </span>
                                                                                            <input name="size_arr[]" type="number" class="form-control" value="{$fileArr[1]}">
                                                                                            <span class="input-group-append">
                                                                                                <span class="input-group-text h7">M</span>
                                                                                            </span>
                                                                                        </div>
                                                                                    </div>
                                                                                    <div class="col-md-7 pl-0 pr-2">
                                                                                        <div class="input-group mb-2">
                                                                                            <span class="input-group-prepend">
                                                                                                <span class="input-group-text h7">{:lang('v_title')}</span>
                                                                                            </span>
                                                                                            <input name="file_title_arr[]" type="text" class="form-control" value="{$fileArr[2]}">
                                                                                        </div>
                                                                                    </div>
                                                                                {else /}
                                                                                    <input name="size_arr[]" type="hidden" value="{$fileArr[1]}">
                                                                                    <input name="file_title_arr[]" type="hidden" value="{$fileArr[2]}">
                                                                                {/if}
                                                                            </div>
                                                                        </td>
                                                                    </tr>                        
                                                                {/volist}
                                                            {/empty}
                                                        </table>
                                                    </div>
                                                </div>
                                            {else /}
                                                <input name="file_arr[]" type="hidden">
                                            {/if}
                                            <!-- 共用上传图片/附件 结束 -->